//
//  HXMaskShowView.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/7.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXMaskShowView.h"
#import "HXFoodMadeVC.h"
@implementation HXMaskShowView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.6];
    }
    return self;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    UITouch *touch = [touches anyObject];
    UIView *view = touch.view;
//    点击背景收起
    if (view == self) {
        [self.foodShowVC dismissbackView];
    }
}

@end
